using Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AnesSystem.Models
{
    public class ItemModel : ObservableObject
    {
        private string name="";
        private string code = "";
        private string dose;
        private string unit = "ml";

        public string Name
        {
            get
            {
                return name;
            }

            set
            {
                name = value;
                RaisePropertyChanged("Name");
            }
        }
        public string Dose
        {
            get
            {
                if (string.IsNullOrEmpty(dose))
                {
                    dose = "";
                }
                return dose;
            }

            set
            {
                //if (string.IsNullOrEmpty(dose))
                //{
                //    dose = "0";
                //}
                //else
                //{
                dose = value;
                //}
                RaisePropertyChanged("Dose");
            }
        }
        public string Unit
        {
            get
            {
                return unit;
            }

            set
            {
                unit = value;
                RaisePropertyChanged("Unit");
            }
        }

        public string Code
        {
            get
            {
                return code;
            }

            set
            {
                code = value;
                RaisePropertyChanged("Code");
            }
        }
    }
}